package com.jay.relationships.mediator;

public class HealthPointMediator {
    private HealthRecord record;

    public HealthPointMediator(HealthRecord record) {
        this.record = record;
    }

    public Integer calculateHealthPointForTask(HealthTask task){
        Integer healthLevel = record.getHealthLevel();
        Integer initialHealPoint = task.getInitialHealPoint();
        Integer healthPoint = 12 / healthLevel + initialHealPoint;
        return healthPoint;
    }
}
